﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HuynhQuangWebsite.Models.HomeListViewModel>" %>
<%@ Import Namespace="THS.HtmlHelpers" %>
<article class="post">
<%if (Model != null)
  {
      if (Model.CustomerList != null)
      {
          foreach (var item in Model.CustomerList)
          {
          %>
    <div class="fancytoggle">
		<span class="toggle"><a href="#"><%=item.CustomerName%>.</a></span>
		<div class="toggle_content" style="display: none;">
			<div class="toggleinside">
				<div class="teamMember">
                
					<img src="<%=item.CustomerImgThumb %>" alt="img" class="vcard" />
					<div class="info">
						<h5><%=item.CustomerInfo %></h5> 
						<p><strong><%=item.CustomerAddr %></strong></p>
						<span class="icon-mail"><%=item.CustomerEmail %></span>
						<span class="icon-phone"><%=item.CustomerPhone %></span>
                        <span class="icon-home"><a href="<%=item.CustomerWebsite %>" target="_blank"><%=item.CustomerWebsite %></a></span>
					</div>
				</div>
            </div>
		</div>
	</div>
    <%} %>
    <div class="clear"></div>
					<div class="divider_line"></div>
					<div class="pagination wp-pagenavi">
						<span class="pages extend">Page 1  of  2</span>
						<span class="current">1</span>
						<a href="#" class="inactive" >2</a>
                            <%=Ajax.Pager(Model.CustomerInfo.CurrentPage, Model.CustomerInfo.TotalItems, "PartnerList", 0, Model.CustomerInfo.ItemsPerPage, "Paging")%>
					</div>			
    <%}
  } %>
    </article>